﻿@using GTAuto.DAL.DAL
@model List<GTAuto.DAL.Entities.GTFirm>
@{
    ViewBag.Title = "FirmsByCat";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="list">
    @Html.Partial("Controls/BreadCrumbs")
    @Html.Partial("Controls/Favorites")
</div>
<div id="main_left">
    @Html.Partial("FirmsCategory")
</div>
<div id="main_center">
    <div class="shini_title">
        Автодиллеры</div>
    <div id="avtodileri_catalog">
        <ul>
            @foreach (var item in Model)
            {
                if (item.Description.Length > 100)
                {
                    item.Description = item.Description.Substring(1, 100);
                }
                
                <li><span class="dileri_logo">
                   <a href=@Url.Action("FirmView", "Firms",new {@id=item.Id})>  <img src="@string.Format("{0}/{1}", DALSettngs.Singleton.Get("BrendLogosAdminView").Value, item.Logo)" /> </a>
                </span><span class="dileri_text"><span>@item.Name</span> @item.Description</span><span class="clear"></span></li>
            }
        </ul>
    </div>
</div>
<div id="main_right">
    @Html.Partial("Controls/Bunner")
    @Html.Partial("Controls/Reklama")
</div>
